package com.whmskj.xjlhsc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whmskj.xjlhsc.entity.ShachangSbStoptime;
import com.whmskj.xjlhsc.mobie.equipmentManage.entity.vo.JtTcPh;
import com.whmskj.xjlhsc.mobie.equipmentManage.entity.vo.RunStopCarVo;
import com.whmskj.xjlhsc.mobie.equipmentManage.entity.vo.SbStopTimeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author 张
 * @version 1.0
 */

@Mapper
public interface ShachangSbStoptimeMapper extends BaseMapper<ShachangSbStoptime> {
    /**
     * 停车记录
     * @param process
     * @return
     */
    List<SbStopTimeVo> selectSbStopTimeVo(@Param(value = "process") String process,@Param(value = "keyWord")String keyWord);

    List<RunStopCarVo> SelectrunStopCar(@Param(value = "process") String process,
                                        @Param(value = "startTime") String startTime,
                                        @Param(value = "endTime") String endTime);

    List<Map<String, Object>> selectBanTcFX(@Param(value = "process") String process,
                                            @Param(value = "startTime") String startTime,
                                            @Param(value = "endTime") String endTime);

    List<JtTcPh> selectJtTcPh(@Param(value = "process") String process,
                              @Param(value = "time") String time,
                              @Param(value = "type") String type);

    List<RunStopCarVo> selectListByMesID(@Param(value = "id") Integer id);

    /**
     * 班组停车分析
     * @param process
     * @param startTime
     * @param endTime
     * @return
     */
    List<Map<String, Object>> selectBanzuiTcFx(@Param(value = "process") String process,
                                               @Param(value = "startTime") String startTime,
                                               @Param(value = "endTime") String endTime);

    List<Map<String, Object>> selectPCMonth();
}
